#include "stm32f10x.h"                  // Device header
#include "oled.h"
#include "Countersensor.h"
#include "Encoder.h"


int main(int argc, char *argv[])
{	
	OLED_Init();
	OLED_ShowString(1, 1, "Counter:");
	
	Encoder_Init();
	
	int16_t Counter;
	while(1)
	{
		Counter = Encoder_GetCount();
		OLED_ShowSignedNum(1,9,Counter,5);
	}
	
	return 1;
}

